﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="TanashCMS.Business"
    namespace="TanashCMS.Business">
	<class name="WebPage" table="Page" lazy="false">
		<id column="ID" name="ID">
			<generator class="identity" />
		</id>
		<property name="ItemKey" column="ItemKey" />
		<property name="PageName" column="PageName" />
		<property name="Title" column="Title" />
		<property name="ParentPageID" column="ParentPageID" />
		<property name="HTMLContent" column="HTMLContent" />
		<property name="IsSecure" column="IsSecure" />
		<property name="State" column="State" />
		<property name="LastUpdated" column="LastUpdated" />
		<property name="GUID" column="GUID" />
		<property name="MasterPage" column="MasterPage" />
		<property name="PageType" column="PageType" />
		<property name="SmartPageLayoutControl" column="SmartPageLayoutControl" />
		<property name="LayoutColumns" column="LayoutColumns" />
		<property name="TemplateType" column="TemplateType" />
		<property name="IsBlogPost" column="IsBlogPost" />
		<property name="DateCreated" column="DateCreated" />
		<many-to-one name="Website" column="WebsiteID" class="TanashWebsite" foreign-key="ID" update="true" insert="true" />
	</class>
</hibernate-mapping>
